<?php
require_once 'application/library/QRCode/Image/QRCode.php';
require_once 'application/library/helper/configHelper.php';
require_once 'application/library/controller/gcBasicAction.php';
/**
 * qrcodeController
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */
class qrcodeController extends gcBasicAction {
    public function indexAction(){
        try {
            Header("Content-type: image/png");
            $code =urldecode( $this->getParam("d"));
            //$err  =urldecode( $this->getParam("e"));
            //$size =urldecode($this->getParam("s"));

            $z=new Image_QRCode();
            $options = array(
                //"L", "M", "Q", "H"
                "error_correct" => "L",
                "module_size" => 30
            );
            # QRコードの作成
           $z->makeCode($code, $options);
        } catch (Exception $e) {
            throw $e;
        }
    }
}
